package com.food.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_food")
public class Food extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品ID
     */
    @TableId(value = "food_id", type = IdType.ID_WORKER_STR)
    private String foodId;

    /**
     * 菜品名称
     */
    private String foodName;

    /**
     * 库存数量
     */
    private Integer amount;

    /**
     * 价格
     */
    private Double price;

    private String imgPath;

    private Integer warningAmount;

    private Double percent1;

    private Double percent2;

    @TableField(exist = false)
    private List<FoodFormula> foodFormulaList;

}
